<template>
  <div>
      <v-add :obj="obj" ref="oCh"></v-add>
      <v-list @edit="edit"></v-list>
  </div>
</template>
<script>
import { mapGetters, mapActions } from "vuex";
import vAdd from "./components/add.vue";
import vList from "./components/list.vue";
export default {
  props: [],
  components: {
    vAdd,
    vList,
  },
  data() {
    return {
          obj:{
            isShow:false,
        }
    };
  },
  computed: {
    ...mapGetters({}),
  },
  methods: {
    ...mapActions({}),
    //  add(){
    //     this.obj.isShow = true
    // },
    edit(e){
      this.obj.isShow = true,
      this.$refs.oCh.getOne(e)
    }

  },
  mounted() {},
};
</script>
<style scoped>
</style>